﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace DSEngineAnimationMarker
{
    public class Offset
    {
        public double x { get; set; }
        public double y { get; set; }
    }

    public class Size
    {
        public double x { get; set; }
        public double y { get; set; }
    }

    public class Frame
    {
        public string name { get; set; }
        public Offset offset { get; set; }
        public Size size { get; set; }
    }

    public class KeyFrame
    {
        public string frame { get; set; }
        public double duration { get; set; }
    }

    public class Animation
    {
        public string name { get; set; }
        public bool loops { get; set; }
        public bool smooth { get; set; }
        public List<KeyFrame> key_frames { get; set; }
    }

    public class AnimationEntity
    {
        public List<Frame> frames { get; set; }
        public List<Animation> animations { get; set; }
    }
}
